load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "gen_fake_config_lib",
    srcs = ["gen_config.go"],
    importpath = "github.com/openconfig/gnmi/testing/fake/gnmi/cmd/gen_fake_config",
    visibility = ["//visibility:private"],
    deps = [
        "//testing/fake/proto",
        "@com_github_golang_glog//:glog",
        "@com_github_protocolbuffers_txtpbfmt//parser",
        "@org_golang_google_protobuf//encoding/prototext",
    ],
)

go_binary(
    name = "gen_fake_config",
    embed = [":gen_fake_config_lib"],
    visibility = ["//visibility:public"],
)
